package com.zhiche.lisa.integration.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.zhiche.lisa.core.enums.TableStatusEnum;
import com.zhiche.lisa.integration.dao.mapper.MailSystemMapper;
import com.zhiche.lisa.integration.dao.model.MailSystem;
import com.zhiche.lisa.integration.service.MailSystemService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 相关邮箱配置表 服务实现类
 * </p>
 *
 * @author hxh
 * @since 2019-11-22
 */
@Service
public class MailSystemServiceImpl extends ServiceImpl<MailSystemMapper, MailSystem> implements MailSystemService {

    @Override
    public List<MailSystem> queryShipmentRemindMail() {
        Wrapper<MailSystem> ew = new EntityWrapper<>();
        ew.eq("func_type","10")
                .eq("status", TableStatusEnum.STATUS_1.getCode());
        return baseMapper.selectList(ew);
    }
}
